package com.qys.livesMall.shop.controller.app;

import com.qys.livesMall.common.result.R;
import com.qys.livesMall.shop.modal.vo.ShopAdvertInfoVO;
import com.qys.livesMall.shop.service.H2ShopAdvertInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**

 *app 店铺轮播广告信息

 *
 * @author
 * @since 2023-06-03
 */
@RestController
@RequestMapping("/app/shopAdvertInfo")
public class AppH2ShopAdvertInfoController {

    @Autowired
    private H2ShopAdvertInfoService shopAdvertInfoService;

    /**
     * 列表
     * @param shopId
     * @return
     */
    @GetMapping("/{shopId}")
    public R<List<ShopAdvertInfoVO>> list(@PathVariable Long shopId){
        return R.ok(shopAdvertInfoService.getAdvertInfoByApp(shopId));
    }
}
